package com.example.peachgrove.dao;

import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Mapper
@Repository
public interface WorkClassMapper {
    //新增类型
    int insertWorkClass( String name,String desc, String coverUrl);

    //修改类型
    int updateWorkClass(String name,String desc,String coverUrl,String workClassId);

    //删除类型
    int deleteByWorkClassId(String workClassId);

    //查询所有类型
    List getAllWorkClass();
}
